#include<stdio.h>
#include<stdlib.h>
int main(int argc,char* argv[])
{
	FILE *fp1;
	FILE *fp2;
	char ch;
	if(argc!=3)
	{
		printf("error!");
		exit(1);
	}
	if(argc==3)
	{
		fp1=fopen(argv[1],"r");
		fp2=fopen(argv[2],"w");
		if(fp1==NULL||fp2==NULL)
		{
			printf("not exist!");
			exit(1);
		}
		ch=fgetc(fp1);
		while(ch!=EOF)
		{
			fputc(ch,fp2);
			ch=fgetc(fp1);
		 } 
		 printf("over copy");
	}
	fclose(fp1);
	fclose(fp2);
 } 

